package cn.growthgate.fgo.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import cn.growthgate.fgo.common.base.BaseServiceImpl;
import cn.growthgate.fgo.entity.ServantCv;
import cn.growthgate.fgo.mapper.ServantCvMapper;
import cn.growthgate.fgo.service.IServantCvService;

/**
 * <p>
 * 从者声优 服务实现类
 * </p>
 *
 * @author GrowthGate
 * @since 2019-06-08
 */
@Service
public class ServantCvServiceImpl extends BaseServiceImpl<ServantCvMapper, ServantCv> implements IServantCvService {

	@Override
	public boolean deleteByServantId(Long servantId) {
		return delete(newWrapper().eq("servantId", servantId));
	}

	@Override
	public List<ServantCv> selectByServantId(Long servantId) {
		return selectList(newWrapper().eq("servantId", servantId));
	}

}
